function [ ] = buildPhi0Cache()
%BUILDPHI0CACHE Summary of this function goes here
%   Detailed explanation goes here

% Use global parameter:
global phi0_cache;
global h_theta;
global h_r;
global inf_r;

k=1;
for r =  0 : h_r : inf_r
    j=1;
    for r_ = 0 : h_r : inf_r
        i=1;
        for theta = 0 : h_theta : pi    
            phi0_cache(i, j, k) = phi0(r, r_, theta);
            i = i+1;
        end
        phi0_cache(i, j, k) = phi0(r, r_, pi);
        j=j+1;
    end
    k=k+1;
end

end

